<template>
  <article class="page mine-page">
    <div class="header">
      <div @click="tools.back()" class="back"><span class="arrow"></span></div>
      <div class="head-bd">
        兑换详情
      </div>
      <div class="message"><div class="head-btn-text">统计汇总</div></div>
    </div>

    <section class="frame-content-sub no-bg">

      <div class="ticket">
        优惠券展示区
      </div>

      <section class="exchange-box">
        <div class="detail">
          <div class="detail-left">
            <h2>补答题券</h2>
            <p>有效期：2020-09-05至2020-12-31</p>
          </div>
          <div class="detail-right">
            <h2>150</h2>
            <p>积分</p>
          </div>
        </div>
        <div class="title-box">
          <h3>兑换说明</h3>
          <p>该券适用于“学习问答”专区，兑换后可对前期未答题记录进行补答。</p>
        </div>
        <div class="title-box">
          <h3>使用流程</h3>
          <p>1.筑红云用户可使用积分兑换适用于“学习问答”专区，对前期未答题记录进行补答，<span>有效期截止到2020年12月31日23:59:59。</span></p>
          <p>2.点击“立即兑换”，兑换成功后，可在“兑换记录”里进行补答。点击“立即补答”，进入“答题日历”页面，选择“未答题”标识（红色标识），进入补答页面，提交成功后完成补答，红色标识变为黄色标识。</p>
        </div>
        <div class="title-box">
          <h3>使用规则</h3>
          <p><span>本券兑换成功后不可退换，积分不可退还。</span></p>
        </div>
        <div v-if="isEnough" class="btn">立即兑换</div>
        <div v-else class="btn-no">积分不足</div>
      </section>

    </section>


  </article>
</template>

<script>
  import moment from 'moment'
  import tools from '@/utils/tools'

  export default {
    name: 'ticketDetail',
    data () {
      return {
        isEnough: false
      }
    },
    created () {
    },
    methods: {}
  }
</script>

<style scoped lang="scss">
  @import "@/common/stylus/moon.scss";
  .mine-page{
    /*background: url("../../../../static/images/dangjian/mine/bg-mine-hd.png") $bg-color no-repeat center #{pxToRem($head-height)};
    background-size: 100% auto;*/
    padding:0;
    .header {
      justify-content: space-between;
      margin-bottom: pxToRem(0px);
      position: relative;
    }
  }
  .frame-content-sub {
    padding:20px 30px;
    display: flex;
    flex-flow: column nowrap;
  }
  .ticket {
    width: 100%;
    height: 164px;
    background: pink;
    box-sizing: border-box;
    margin-bottom: 20px;
  }
  .exchange-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    box-shadow: 1px 5px 20px 0px rgba(0, 1, 59, 0.1);
    padding: 0 34px;
    flex: 1;
    .detail {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 0;
      border-bottom: 1px solid #E5E5E5;
      h2 {
        font-size: 30px;
      }
      p {
        color: #9A9A9A;
        font-size: 20px;
      }
      .detail-right h2 {
        color: #E20002;
      }
    }
    .title-box {
      margin-top: 30px;
      h3 {
        font-size: 24px;
      }
      p {
        margin-top: 10px;
        span {
          color: #E20002;
        }
      }
    }
  }
  .btn {
    margin: 60px auto;
    width: 620px;
    height: 90px;
    color: #FFFFFF;
    font-size: 36px;
    text-align: center;
    line-height: 90px;
    border-radius: 20px;
    background: linear-gradient(top, #FE8E00, #E61202);
    box-shadow: 0px 10px 10px -10px #E81C02;
  }
  .btn-no {
    margin: 60px auto;
    width: 620px;
    height: 90px;
    color: #FFFFFF;
    font-size: 36px;
    text-align: center;
    line-height: 90px;
    border-radius: 20px;
    background: #C6C6C6 !important;
    box-shadow: transparent !important;
  }
</style>
